<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/17
 * Time: 下午10:13
 */

namespace App\Busi\Traits;

use PhpSms;
use Toplan\Sms\SmsManager;
Trait SmsTrait
{
    public function sendTemplateSms($phone,$templates,$tempData)
    {
        return PhpSms::make()->to($phone)->template($templates)->data($tempData)->send();
    }

}